#ifndef CLISTANSWER_H
#define CLISTANSWER_H

#include <QVector>
#include "CAnswer.h"

class CListAnswer
{

private:
	QVector<CAnswer> answers;

public:
	CListAnswer();

	CAnswer getAnswer(const int n);
	CAnswer lastAnswer() const;
	int lastIndex() const;
	int addAnswer(const CAnswer answer = CAnswer());
	bool updateAnswer(const CAnswer answer, int n);
	bool deleteAnswer(const int n);
	int count() const;
};
#endif
